# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer:
pkgname=nwg-displays
pkgver=0.3.10
pkgrel=0
pkgdesc="Output management utility for sway Wayland compositor"
url="https://github.com/nwg-piotr/nwg-displays"
arch="noarch"
license="MIT"
depends="
	gtk+3.0
	gtk-layer-shell
	py3-gobject3
	py3-i3ipc
	python3
	wlr-randr
	"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/nwg-piotr/nwg-displays/archive/v$pkgver/nwg-displays-$pkgver.tar.gz"
options="!check"  # no tests provided

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
7b51aa88cb7566b5018da479d9afb897fac3f67b17b04dde9cf9106c5876a1c073dfe0342ef71432a07a0061ea1d8066a5e4b73212ca7b23d3dcee2f8785e171  nwg-displays-0.3.10.tar.gz
"
